*Note: This code estimates the Models 1 and 2, as reported in Table 1 of the main research note.
*	To do so, it reads-in the Stata .dta file "MainMalariaDataset.dta" and then prints relevant table output to screen.

*clear Stata
clear
clear matrix

*set memory
set more 1
set matsize 400
set mem 500m

*set working directory
cd  ""

*start log file
log using "Models_1_through_2_Table_1", replace

*read-in directed-dyadic dataset
use "MainMalariaDataset.dta"

******************************************************
******************Table 1 Results*********************
******************************************************

*fixed effects (directed dyad), baseline (Model 1)
xtlogit dr_1_at_2_m Lmalaria_interp_2_m, i(ddyad) fe

*fixed effects (directed dyad), full (Model 2)
xtlogit dr_1_at_2_m Lmalaria_interp_2_m Lcid_per_trop_2_m Llog_distance_m Llog_trade_m Lcolony_m Ldr_2_at_1_m Llog_gdppc_1_m Llog_gdppc_2_m Ls2_m Lln_cinc_1_m Lln_cinc_2_m Ldem_int_m Ldemocracy_1_m Ldemocracy_2_m t2 t3 t4 t5 t6 t7 t8 t9 t10 t11, i(ddyad) fe

*close log file
log close
